/*
 * CodePress regular expressions for HTML syntax highlighting
 */

// HTML
Language.syntax = [
	{ input : /(&lt;[^!]*?&gt;)/gi, output : '<b>$1</b>'	}, // all tags
//	{ input : /(&lt;style.*?&gt;)(.*?)(&lt;\/style&gt;)/gi, output : '<em>$1</em><em>$2</em><em>$3</em>' }, // style tags
//	{ input : /(&lt;script.*?&gt;)(.*?)(&lt;\/script&gt;)/gi, output : '<strong>$1</strong><tt>$2</tt><strong>$3</strong>' }, // script tags
	{ input : /=(".*?")/g, output : '=<s>$1</s>' }, // atributes double quote
	{ input : /=('.*?')/g, output : '=<s>$1</s>' }, // atributes single quote
	//{ input : /\^(if|switch|case|for|while|taint|untaint|try|throw|eval|process|cache|use|connect|break|continue)\b/g, output : '<i>^$1</i>' }, // script reserved words

	{ input : /(\^[\w:.]+)/gi, output : '<i>$1</i>' }, // functions
	{ input : /(\^[\w.]+\:\:[\w.]+)/gi, output : '<tt>$1</tt>' }, // functions
	{ input : /(\$[\w:.\{\}]+)/gi, output : '<big>$1</big>' }, // variables
	{ input : /(<br>|<\/P>|^|[\n\r\f])(@[\w\:\.]+)/gi, output : '$1<i><b>$2</b></i>' }, // объявление функций

	// комментарии
	{ input : /([^:])\/\/(.*?)(<br|<\/P>|$|[\n\r\f])/gi, output : '$1<ins>//$2</ins>$3' }, // comments //
	{ input : /(<br>|<\/P>|^|[\n\r\f])(#.*?)(<br>|<\/P>|$|[\n\r\f])/gi, output : '$1<ins>$2</ins>$3' }, // comments #
	{ input : /(<br>|<\/P>|^|[\n\r\f])(#.*?)(<br>|<\/P>|$|[\n\r\f])/gi, output : '$1<ins>$2</ins>$3' }, // comments #

  { input : /<i>\^rem<\/i>\{(.*?)\}/g, output : '<ins>^rem{$1}</ins>' }, // parser comments ^rem{ }
	{ input : /(&lt;!--.*?--&gt.)/g, output : '<ins>$1</ins>' } // html comments <!-- -- >

]

Language.snippets = []

Language.complete = []

Language.shortcuts = []
